import {Component, PropsWithChildren} from 'react'
import './app.less'
import {Provider} from "mobx-react";
import ZWXTabBarStore from "./components/zwx-tabbar/store/ZWXTabBarStore";
import { View } from '@tarojs/components';

const store = {
  zwxTabBarStore: ZWXTabBarStore
}
class App extends Component<PropsWithChildren> {

  componentDidMount () {}

  componentDidShow () {}

  componentDidHide () {}

  componentDidCatchError () {}

  // this.props.children 是将要会渲染的页面
  render () {
    console.log(store)
    return <Provider {...store}>
      <View>
        {this.props.children}
      </View>
    </Provider>;
  }
}

export default App
